The Accordion Pane Component > Customizing the Accordion Pane component

 

Customizing the Accordion Pane component

You can customize the appearance of the component by changing the properties of the FStyleFormat object. If you want to change a component's appearance completely, you can reskin it (described below).

 
Modifying FStyleFormat properties

The following table lists FStyleFormat properties you can edit to format the Accordion Pane component. You can change individual elements, or you can set global properties using globalStyleFormat:

Properties

background

border

darkShadow

disabledBackground

disabledBorder

disabledDarkShadow

disabledFace

disabledHighlight

disabledHighlight3d

disabledShadow

face

highlight

highlight3d

shadow

Here is an example that uses the FStyleFormat object to set style properties for the Accordion Pane component:

globalStyleFormat.face = 0xCC0000;
globalStyleFormat.highlight = 0x33aa99;
globalStyleFormat.apply();

For more information about the FStyleFormat object and a list of all its properties, see the FStyleFormat entries in the online ActionScript Dictionary in Macromedia Flash MX.

 
Reskinning the Accordion Pane component

When you add components to a Macromedia Flash document, a Flash UI Components folder is added to the Library panel. That folder contains a subdirectory called Component Skins. Within that subdirectory is a Skins subdirectory for each component that contains user interface elements you can redesign. Editing the skin completely changes the appearance of the component. Change the skin of an instance of a component by selecting the component on the stage and selecting Edit > Edit in Place, or by double-clicking it in the directory in the Library panel.

The assets for the Accordion Pane component are located in the Library panel in the Flash UI Components\Core Assets-Developer Only\FAccordionView Assets folder.

For more information on customizing component skins, see the Macromedia Flash MX Help (select Help > Using Flash from within the program).